<include file="Public/header" />

<div class="ibox float-e-margins">
<div class="ibox-title">
    <h5>菜单信息</h5>

    <div class="ibox-tools">
        <a class="collapse-link" href="{:U('admin/member/admin')}">
            <i class="fa fa-chevron-up"></i>管理员列表
        </a>

    </div>



</div>
	
			<form method="post" class="cmzForm" action="/ajax/admin/edit.html">
					 <div class="ibox-content">
					 <table class="table table-striped table-bordered table-hover dataTables-example dataTable" data-page-size="8">
						<tbody>
						
							<tr>
								<td>用户名:</td>
								<td><input type="text" class="input form-control" name="user_login" value="{$data.user_login}"></td>
							</tr>
							<tr>
								<td>登陆密码:</td>
								<td><input type="text" class="input form-control" name="user_pass" value=""></td>
							</tr>
							<tr>
								<td>真实名:</td>
								<td><input type="text" class="input form-control" name="display_name" id="app" value="{$data.display_name}"></td>
							</tr>
							<tr>
								<td>邮箱地址:</td>
								<td><input type="text" class="input form-control" name="user_email" id="model" value="{$data.user_email}"></td>
							</tr>
							<tr>
								<td>权限组:</td>
								<td><select name="role_id" class="form-control">
								<option value="0">没有权限</option>
									<?php foreach ($power as $key => $v): ?>
										<option value="{$v.id}" <eq name="data.role_id" value="v.id">selected</eq>>{$v.name}</option>
									<?php endforeach ?>
									</select></td>
							</tr>
						
							<tr>
								<td>状态:</td>
								<td><select name="user_status" class="form-control">
										<option value="1" <eq name="data.user_status" value="1">selected</eq>>可用</option>
										<option value="0" <eq name="data.user_status" value="0">selected</eq>>禁用</option>
									</select></td>
							</tr>
							
						</tbody>
					</table>
				
				<div class="">
					<div class="btn_wrap_pd">
							<input type="hidden" id="{$data.id}" name="id">
						<a class="mr10 J_ajax_submit_btn btn btn-primary  btn-outline cmzPost" where="<?php if($data['id']){ echo "id-".$data['id'];} ?>" table="admin" returnurl="{:U('Admin/Member/admin')}" >操作</a>
					</div>
				<hr/>
				</div>
			</form>
		
	</div>
